<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/templateFormulario.xhtml">
	
	<ui:define name="formContent">
		<f:loadBundle basename="props.lenguajes.messages" var="msg"/>
		<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
		<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>
		
		<p:dialog modal="true" widgetVar="statusDialog" header="Processing"   
		        draggable="false" closable="false">  
		    <p:graphicImage value="../../resources/img/ajaxloadingbar.gif" />
		</p:dialog>
		<p:dialog header="#{msg['message.devLlid.confirmationDialog']}" widgetVar="dlgConfirmation" modal="true" height="110" closable="false" styleClass="centerContent" >  
		    <p:messages id="messages2" showDetail="true" autoUpdate="true" closable="true" />
	    	<p:commandButton id="btnContinue" value="#{msg['message.devLlid.actionBtnContinuar']}"
						action="#{pruebaPsicometricaMB.continuar}"
						style="width:100%;" />
		</p:dialog>
		<p:dialog header="#{msg['message.devLlid.confirmationDialog']}" widgetVar="dlgConfirmCancel" modal="true" height="80" closable="false" styleClass="centerContent" >  
		    <p:messages id="messages3" showDetail="true" autoUpdate="true" closable="true" />
		    <h:panelGrid columns="2" styleClass="centerContent">
		    	<p:commandButton id="btnContinueCancel" value="#{msg['message.cancelMessage2']}"
							action="#{pruebaPsicometricaMB.continueCancel}"/>
				<p:commandButton id="btnCancelCancel" value="#{msg['message.cancelMessage']}"
							action="#{pruebaPsicometricaMB.cancelCancel}"/>
		    </h:panelGrid>
		</p:dialog>
		
		<h:panelGrid columns="2">
		
			<h:panelGrid columns="2" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel value="#{msg['message.devLlid.titleNctrl']}:"/>
				<p:inputText value="#{pruebaPsicometricaMB.vistaNumeroControl}" id="ncInput" size="25" disabled="true" />
										
				<p:outputLabel value="#{msg['message.devLlid.titleFechaNacimiento']}:"/>
				<p:inputText value="#{pruebaPsicometricaMB.vistaFNacimiento}" id="fenaInput" size="25" disabled="true" />
				
				<p:outputLabel value="#{msg['message.devLlid.titleFechaIngreso']}:"/>
				<p:inputText value="#{pruebaPsicometricaMB.vistaFIngreso}" id="feinInput" size="25" disabled="true" />
				
			</h:panelGrid>
			
			<h:panelGrid columns="2" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel value="#{msg['message.devLlid.titleNombre']}:"/>
				<p:inputText value="#{pruebaPsicometricaMB.vistaNombre}" id="nameInput" size="25" disabled="true"/>
				
				<p:outputLabel value="#{msg['message.devLlid.titleEdad']}:"/>
				<p:inputText value="#{pruebaPsicometricaMB.vistaEdad}" id="edadInput" size="25" disabled="true" />
				
				<p:outputLabel value="#{msg['message.devLlid.titleAntiguedad']}:"/>
				<p:inputText value="#{pruebaPsicometricaMB.vistaAntiguedad}" id="antInput" size="25" disabled="true" />
				
			</h:panelGrid>
			
		</h:panelGrid>
		
		<p:separator/>
		
		<h:panelGrid columns="1" style="font-size: 12px; font-weight:bold;" >
			<h:panelGrid columns="1" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel value="#{msg['message.devLlid.titleSubirPrueba']}:"/>
			</h:panelGrid>
		</h:panelGrid>
		
		<p:separator/>
		
		<div id="mainFormBotones">
	
		
            <h:panelGrid id="pnlGridBotones" styleClass="centerContent">
				<ui:include src="/plantilla/botones.xhtml" />
            </h:panelGrid>
		</div>
		<h:panelGroup layout="block" style="text-align:center;">
			<p:commandButton id="ppsFUp" immediate="true" process="@this"
				value="#{msg['message.upload.adjuntarDoc']}"
				action="#{fileUploadVW.showDialog}">
			</p:commandButton>
		</h:panelGroup>
		
		<ui:include src="/plantilla/adjuntarDocumentos.xhtml"></ui:include>
		
	</ui:define>
	
	
</ui:composition>
